#import "OmBaseVC.h"
@interface OmBaseVC ()
@property (nonatomic, assign) BOOL allowTabBarHidden;
@property (nonatomic, assign) BOOL allowNavigationBarHidden;
@end
@implementation OmBaseVC
- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor colorWithHexString:@"#F7F7F7"];
    [self configSelf];
    [self allocateComponents];
    [self layoutComponents];
}
- (UIStatusBarStyle)preferredStatusBarStyle {
    return UIStatusBarStyleLightContent;
}
- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    if (self.allowTabBarHidden) self.tabBarController.tabBar.translucent = YES;
    self.tabBarController.tabBar.hidden = self.allowTabBarHidden;
    [self.navigationController setNavigationBarHidden:self.allowNavigationBarHidden animated:animated];
    [self refreshSelf];
}
- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    self.tabBarController.tabBar.hidden = NO;
    self.tabBarController.tabBar.translucent = NO;
    [self.navigationController setNavigationBarHidden:NO animated:animated];
}
- (void)setHiddenForTabBar:(BOOL)tabBarHidden navigationBar:(BOOL)navigationBarHidden {
    self.allowTabBarHidden = tabBarHidden;
    self.allowNavigationBarHidden = navigationBarHidden;
}
#pragma mark -　相关方法
- (void)configSelf {
}
- (void)allocateComponents {
}
- (void)layoutComponents {
}
- (void)refreshSelf {
}
@end
